<template>
    <div class="section-container">
        <img class="logo" src="@/assets/imgs/logo.png" />
        <div class="btn-section">
            <img @click="btnAction('link1')" class="icon" src="@/assets/imgs/link_icon1.png" />
            <img @click="btnAction('link2')" class="icon" src="@/assets/imgs/link_icon2.png" />
            <img @click="btnAction('link3')" class="icon" src="@/assets/imgs/link_icon3.png" />
        </div>
        <span v-show="emailShow" class="email">{{ props.email }}</span>
        <span class="desc">©2011-2024 ZADARA, INC.</span>
    </div>
</template>

<script setup>
import { ref } from 'vue'
const emits = defineEmits(['btnTap'])
const props = defineProps({
    email: {
        type: String,
        default: ''
    }
})
const btnAction = (type) => {
    emits('btnTap', type)
    if (type == 'link3') {
        emailShow.value = !emailShow.value
    }
}
const emailShow = ref(false)
</script>

<style lang="scss" scoped>
.section-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 0;
    background-color: #000;

    .logo {
        width: 250px;
        height: auto;
        margin-top: 20px;
    }

    .btn-section {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 50px;

        .icon {
            width: 40px;
            height: 40px;
            margin-left: 20px;
            cursor: pointer;

            &:first-child {
                margin-left: 0;
            }
        }

        .email {
            color: #fff;
            margin-left: 20px;
        }
    }

    .email {
        color: #fff;
        font-size: 14px;
        margin-top: 20px;
    }

    .desc {
        color: #fff;
        font-size: 14px;
        margin-top: 30px;
    }

}
</style>